<?php

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/7/4
 * Time: 16:14
 */

namespace app\common\validate;

class Product extends \think\Validate
{
    protected $rule = [
        'title|商品名称' =>  'require|max:100|token',
        'seo_title|产品标题' =>  'require',
        'cid' =>  'require|number',
//        'jiaqian|价格' =>  'require|number',
        'parameter|参数' =>  'require',

        'key|关键词' =>  'require',
        'center|商品内容' =>  'require',
        'miaoshu|商品摘要' =>  'require',
//        'tag|标签' =>  'require',
//        'issue|商品管理人' =>  'require',
        'status' =>'number|in:1,0',
    ];

    protected $message = [
        'cid' =>  '分类错误',
        'status'=>'校验范围不合法',
    ];

    protected $scene = [

    ];

}